<%@page language="java" import="com.scalar.chiptrack.operations.LotView,
                                java.util.ArrayList,
                                java.util.Iterator,
                                com.scalar.chiptrack.utils.ConfigManager"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>
<chiptrack:checkLogon sourcePage="/jsp/operations/process_flow_view.jsp"/>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>

<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>
<LINK REV="made" HREF="mailto:mallik@scalarsoft.com">
<META NAME="generator" CONTENT="NoteTab Light 4.86c">
<META NAME="author" CONTENT="Mallikarjun Ankati">
<META NAME="description" CONTENT="">
<META NAME="keywords" CONTENT="">

<SCRIPT src="<%=chipTracContext%>/jsp/includes/scripts/Lot.js" LANGUAGE="Javascript1.2"></SCRIPT>
<SCRIPT src="<%=chipTracContext%>/jsp/includes/scripts/Location.js" LANGUAGE="Javascript1.2"></SCRIPT>
<SCRIPT src="<%=chipTracContext%>/jsp/includes/scripts/Product.js" LANGUAGE="Javascript1.2"></SCRIPT>
<SCRIPT src="<%=chipTracContext%>/jsp/includes/scripts/ProcessStep.js" LANGUAGE="Javascript1.2"></SCRIPT>
<script src="<%=chipTracContext%>/jsp/includes/scripts/Process.js" language="Javascript1.2"></script>
<script src="<%=chipTracContext%>/jsp/includes/scripts/ProcessRender.js" language="Javascript1.2"></script>

<SCRIPT LANGUAGE="javascript">
<!--
    	var arrow = new Image();
	var down = new Image();
	var up = new Image();
        //var bgImage = new Image();

	arrow.src = "<%=chipTracContext%>/jsp/includes/images/arrow.gif";
	down.src ="<%=chipTracContext%>/jsp/includes/images/down.gif";
	up.src ="<%=chipTracContext%>/jsp/includes/images/up.gif";
        //bgImage.src ="<%=chipTracContext%>/jsp/includes/images/bgImage.gif";

	var bgColor = "#993333";
	var NArial = "NArial";
	var BArial = "BArial";
	var d = "";
	var pr = "";

<%
        StringBuffer sb = (StringBuffer)request.getAttribute("flowBuffer");
        String productId = (String)request.getAttribute("productId");
        String partNumber = ((String)request.getAttribute("productName")).replaceAll("'","\\\\'") ;
%>
	d = new Process('<%= partNumber%>', <%= productId%>);
 	<%= sb.toString()%>

	try{
		pr = new ProcessRender(window, d, "render", 300, 125);
	}catch(ProcessException){
	     	alert("ProcessRender object is not initialized ..");
	}

//-->
</SCRIPT>

</HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

<!-- Top Header Start-->
<%@include file="/jsp/includes/header.jsp"  %>
<!-- Top Header End-->
 <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->

<%@include file="/jsp/operations/operations_menu.jsp" %>
</TD>
<!-- end of the side navigations -->
<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">
<table width="100%" border=0 >
	<tr><td align="center" class="NArialW" width="100%">Wip Process View </td></tr>
	<tr><td> &nbsp;&nbsp;&nbsp; </td></tr>
	<tr><td>
<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>
<!-- from here your body starts -->

<script language="JavaScript1.2">
	pr.init();
	//document.writeln(pr.body);
</script>
<!-- till here -->
</td></tr>
</table>

<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>

<!-- Footer starts here -->

<!-- footer end here -->

</BODY>
</HTML>
